onload = function() {
    let pathToId = {
        '/product': 'products-list',
        '/product/add': 'add-product',
        '/product/edit': 'edit-product'
    }

    let path = window.location.pathname;
    console.log(path)
    if (pathToId[path]) {
        curEl = document.getElementById(pathToId[path]);
        curElSibilings = curEl.parentElement.children;
        for (el of curElSibilings) {
            el.classList.remove('active')
        };
        curEl.classList.add('active')

    }

}